<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/layui.css">
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/js/layui.js"></script>
    <style>
        form{
            margin-top: 50px;
            padding: 50px;
        }
    </style>
    <script>
        function check(){
            if (${user.isCold} == 1){
                alert("您的账号已冻结！无法进行此操作。");
                return false;
            }
        }
    </script>
</head>
<body>
    <form class="layui-form" onsubmit="return check()" action="${pageContext.request.contextPath}/transfermoney">
        <div class="layui-form-item">
            <label class="layui-form-label layui-col-xs5">汇款账户名：</label>
            <div class="layui-input-block layui-col-xs7">
                <input type="text" name="tousername" required  lay-verify="required" placeholder="请输入要汇款的账户名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-col-xs5">汇款金额：</label>
            <div class="layui-input-block layui-col-xs7">
                <input type="text" maxlength="9" oninput = "value=value.replace(/[^0-9.]/g,'')" name="money" required  lay-verify="required" placeholder="请输入汇款金额" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
        <div class="layui-bg-gray">
            <p style="font-size: 30px">${msg}</p>
        </div>
    </form>
</body>
</html>
